package com.sinosoft.dsp.component.bpm.viewbean;

import org.primefaces.json.JSONObject;

import com.sinosoft.dsp.component.bpm.exception.SinoBPMException;
import com.sinosoft.dsp.platform.components.IEditViewBean;

public interface IBpmAddEditPackageViewBean extends IEditViewBean {

	/**
	 * 转换为JSON对象
	 * 
	 * @return
	 * @throws SinoBPMException
	 */
	public JSONObject toJson() throws SinoBPMException;

	/**
	 * 从JSON对象中设置对象
	 * 
	 * @param jo
	 * @throws SinoBPMException
	 */
	public void fromJson(JSONObject jo) throws SinoBPMException;
}
